package net.gazhi.delonix.core.util;

import java.sql.Timestamp;
import java.util.Date;

/**
 * 时间工具类
 * 
 * @author Jeffrey Lin
 *
 */
public class TimeUtils {

	/**
	 * 根据整型的秒数返回 Timestamp
	 * 
	 * @param seconds
	 * @return
	 */
	public final static Timestamp seconds2Timestamp(long seconds) {
		return new Timestamp(seconds * 1000);
	}

	/**
	 * 根据整型的秒数返回 Date
	 * 
	 * @param seconds
	 * @return
	 */
	public final static Date secondsToDate(long seconds) {
		return new Date(seconds * 1000);
	}

}
